package com.example.eduorder;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author wlg
 * @create_time 2021-09-13 上午 11:21
 * @function
 */
@SpringBootApplication
@ComponentScan("com.example")
@EnableDiscoveryClient  //注册中心中注册
@EnableFeignClients //远程调用
@MapperScan("com.example.eduorder.mapper")
public class OrdersApplication {
    public static void main(String[] args) {
        SpringApplication.run(OrdersApplication.class,args);

    }
}
